import {
    chekClassFareAccountManageList,
    getStatistics,
    recordCollectionClassFare,
    recordCashClassFare,
    collectionClassFare,
    putClassFareAccountManage,
    cashCurrency,
    recordStudentClassFare,
    readRecordStudentClassFare,
    pay,
    refreshPayState,
    sendWeChatMsgForSingle
    } from '@/api/classFeeApi'
const classFee = {
    namespaced: true,
    state: {
        
    },
    getters: {
    },
    mutations: {
      
    },
    actions: {
        ChekClassFareAccountManageList({ state, commit, dispatch }, params) {
            return new Promise((resolve, reject) => {
                chekClassFareAccountManageList(params).then(res => {
                    resolve(res)
                })
            })
        },
        GetStatistics ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                getStatistics(params).then(res => {
                    resolve(res)
                })
            })
          },
          RecordCollectionClassFare ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                recordCollectionClassFare(params).then(res => {
                    resolve(res)
                })
            })
          },
          RecordCashClassFare ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                recordCashClassFare(params).then(res => {
                    resolve(res)
                })
            })
          },
          CollectionClassFare ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                collectionClassFare(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          PutClassFareAccountManage ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                putClassFareAccountManage(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          CashCurrency ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                cashCurrency(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          RecordStudentClassFare ({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                recordStudentClassFare(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          ReadRecordStudentClassFare({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                readRecordStudentClassFare(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          Pay({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                pay(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          RefreshPayState({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                refreshPayState(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          },
          SendWeChatMsgForSingle({state, commit, dispatch}, params) {
            return new Promise((resolve, reject) => {
                sendWeChatMsgForSingle(params).then(res => {
                    resolve(res)
                }).catch(res => {
                    reject(res)
                })
            })
          }
    }
}
export default classFee